const Sequelize = require('sequelize');

const sequelize = new Sequelize('tq_s', 'root', 'Flzx_3kc', {
  host: '120.78.221.27',
  port: 45606, // 端口号，MySQL默认3306
  dialect: 'mysql',
  operatorsAliases: false,
  dialectOptions: {
    // 字符集
    charset: "utf8mb4",
    collate: "utf8mb4_unicode_ci",
    supportBigNumbers: true,
    bigNumberStrings: true
  },

  pool: {
    max: 5,
    min: 0,
    acquire: 30000,
    idle: 10000
  },
  timezone: '+08:00' //东八时区
});

module.exports = {
  sequelize
}